var app = getApp()
Page({
    data: {
        userInfo: {},
	      num: '',
        isShowFootNav:true
    },
    onLoad: function () {

    },

    onShow:function () {
        var pageObj = this;
        pageObj.setData({userInfo:app.globalData.userInfo});

        var opt = {
            url: app.globalData.host+"/wx/ehk /list.ajax",
            data: {
                'accountId':app.globalData.openId,
                'bizFlag':app.globalData.bizDoingFlag,
                'orderType':app.globalData.orderType
            },
            sucFn:function (result) {
                var num = "";
                if(result.body.orderList.length!=0){
                    num = result.body.orderList.length;
                }
                pageObj.setData({
                    "num": num
                });
            }
        };
      app.ajax(opt);

	    app.setStorageSync(app.globalData.callVisaSign,1)  //用于首页是否调用签注类别标记
    },
    mineTap:function (e) {
    },
    idCardTap:function (e) {
      var url = e.currentTarget.dataset.url;
      app.redirectTo({url: url});
    },
    problemTap:function () {
        app.navigateTo({url:'../problem/problem'});
    },
	  downloadTap:function(){
		    app.navigateTo({url:'../download/download'});
    },
    callTap:function () {
        app.makePhoneCall("020-11183");
    },
    orderDoingTap:function () {
        app.navigateTo({url:'../orderlist/orderlist?bizFlag='+app.globalData.bizDoingFlag});
    },
    orderFinishTap:function () {
        app.navigateTo({url:'../orderlist/orderlist?bizFlag='+app.globalData.bizFinishFlag});
    },
    orderAllTap:function () {
        app.navigateTo({url:'../orderlist/orderlist?bizFlag='+app.globalData.bizAllFlag});
    }
});